package cn.dlc.com;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import cn.dlc.com.server.ZookeeperServer;

@SpringBootApplication
public class ZookeeperServerApplication {

	public static void main(String[] args) throws Exception{

		SpringApplication.run(ZookeeperServerApplication.class, args);

		// 启动的时候初始化一个连接先....
		ZookeeperServer zs = new ZookeeperServer();
		zs.initConfig(null);
		zs.syncConfigToZookeeper();

	}
}
